<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>

<%

if(application.getAttribute("sessionMap")!=null){
	Map<String, HttpSession> sessionMap=(Map<String, HttpSession>)application.getAttribute("sessionMap");
	if(session.getAttribute("loginUserName")!=null){
		sessionMap.remove(session.getAttribute("loginUserName")+"normal");
		application.setAttribute("sessionMap",sessionMap);
	}
}
session.invalidate();
%>

<script>

//设置COOKIE
function setCookie(c_name,value,exdays){
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value;
}

setCookie('cookie_userName','',0);
setCookie('cookie_userPassword','',0);

window.location="login.jsp";

</script>





